package stud.aistar.service;

import com.github.pagehelper.PageInfo;
import org.apache.ibatis.annotations.Param;
import stud.aistar.entity.Treatment;

import java.util.List;
import java.util.Map;

/**
 * *
 *
 * @ClassName :wangyu
 * @Description
 * @Author
 * @Date2019/9/28 19:27
 * @Version V1.0
 */
public interface ITreatmentService {

    PageInfo<Treatment> findPage(Integer docId,Map<String,String> paramMap);

    List<Treatment> findAll(Integer dId);

    Treatment findByName(String patName);

    void updById(@Param("t") Treatment treatment, @Param("tid") Integer id);

    void delById(@Param("tid") Integer id);

    void insName(@Param("t") Treatment treatment);

    int FindTreatmentCount();

    Treatment findByPatId(Integer patId);

    List<Treatment> findByPatName(String patName,Integer docId);

    PageInfo<Treatment> findPatNamePage(Integer docId,String patName,Map<String,String> paramMap);

}
